package geektime.spring.data.reactive.simpler2dbcdemo.converter;

import org.joda.money.CurrencyUnit;
import org.joda.money.Money;
import org.springframework.core.convert.converter.Converter;

public class MoneyReadCoverter implements Converter<Long,Money> {

  @Override
  public Money convert(Long aLong) {
    return Money.ofMinor(CurrencyUnit.of("CNY"),aLong);
  }
}
